package demo;

/**
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
public class Text {

    private String content = "";

    public String backup(){
        return this.content;
    }

    public void resume(String content){
        this.content = content;
    }

    public void addContent(String content){
        this.content = this.content + ( content == null ? "" : content );
    }


    @Override
    public String toString() {
        return "Text{" +
                "content='" + content + '\'' +
                '}';
    }
}
